package com.tony.blog.api.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.ApplicationEvent;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: BlogMsg
 * @Auther: 皮蛋布丁
 * @Date: 2021/09/29/13:31
 * @Description: 驱动模型实现类
 */
public class BlogMsg extends ApplicationEvent implements Serializable {

    /*
    当前需要删除博文的id
     */
    private Integer blogId;
    /*
    当前事件类型
     */
    private Integer type;

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BlogMsg(Object source, Integer blogId, Integer type) {
        super(source);
        this.blogId = blogId;
        this.type = type;
    }
}
